const app = getApp()

Page({
  data:{
    isShow:false,
    videoList:[]
  },
  changeShow(){
    this.setData({
      isShow: !this.data.isShow
    });
  },
  getDetail(id){
    wx.request({
      url: app.globalData.server_url+'getDetail/'+id,
      header: {
        'content-type': 'application/json' // 默认值
      },
      method: 'GET',
      success: (res)=>{
        this.setData({
          videoList: res.data.data
        });        
      },
      fail: function (res) {
        console.log(res);
       },
    })
  },
  onLoad(options) {
    this.getDetail(options.id)
  }
})